import { BILL_SOURCE_TYPE } from "../enum/pd-enum";

export function WalletBillSourceTypeName(sourceType: BILL_SOURCE_TYPE, settlement?: number) {
	if (settlement === 0) return '待结算';

	return {
		[BILL_SOURCE_TYPE.pending]: '待结算',
		[BILL_SOURCE_TYPE.income]: '收入',
		[BILL_SOURCE_TYPE.expenditure]: '支出',
	}[sourceType];
};